package game;

import java.awt.image.BufferedImage;

/**
 * @Author: liwan
 * @Description:
 * @Date: create in 2021/9/2 19:57:58
 */
public class HeadPic {
    private int x;
    private int y;
    private int w;
    private int h;
    private BufferedImage image;
    private GamePanel gamePanel;

    public HeadPic() {
        this.x = 60;
        this.y = 40;
        this.image = ImageUtil.getImg("../img/head.png");
        this.w = this.image.getWidth() / 2;
        this.h = this.image.getHeight() / 2;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public BufferedImage getImage() {
        return image;
    }

    public void setImage(BufferedImage image) {
        this.image = image;
    }

    public int getW() {
        return w;
    }

    public void setW(int w) {
        this.w = w;
    }

    public int getH() {
        return h;
    }

    public void setH(int h) {
        this.h = h;
    }
}
